package io.renren.modules.gengyun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.gengyun.entity.SoilConditionHourlyEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author
 * @email
 * @date 2020-09-17 20:31:48
 */
public interface SoilConditionHourlyService extends IService<SoilConditionHourlyEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
     * 湿度
     * @param cropsRotationPlotId
     * @param beginTime
     * @param endTime
     * @return
     */
    List<Integer> getHumidityByCropRotationId(String cropsRotationPlotId, Long beginTime, Long endTime);
    /**
     * 温度
     * @param cropsRotationPlotId
     * @param beginTime
     * @param endTime
     * @return
     */
    List<Integer> getTemperatureByCropRotationId(String cropsRotationPlotId, Long beginTime, Long endTime);

    List<Map> getSoilLOT(String cropsRotationPlotId, String beginTime, String endTime);

}

